package com.hbk.controller;

import com.hbk.base.common.CommonResult;
import com.hbk.param.ConParam;
import com.hbk.service.IConsultationService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/api/consultation")
public class ConsultationController {

    @Resource
    private IConsultationService consultationService;

    @RequestMapping("/add")
    public CommonResult add(ConParam.AddParam param){
        return consultationService.add(param);
    }

    @RequestMapping("/modify")
    public CommonResult modify(ConParam.ModifyParam param){
        return consultationService.modify(param);
    }

    @RequestMapping("/tableList")
    public CommonResult tableList(ConParam.TableListParam param){
        return consultationService.tableList(param);
    }

    @RequestMapping("/delete")
    public CommonResult delete(ConParam.DeleteParam param){
        return consultationService.delete(param);
    }

    @RequestMapping("/webList")
    public CommonResult webList(ConParam.WebListParam param){
        return consultationService.webList(param);
    }
}
